{extend name="public/base" /} {block name="body"}
<div class="ibox float-e-margins">
	<div class="ibox-title">
		<h5>帮助中心列表</h5>
	</div>
	{include file="helps/top"}
	<div class="ibox-content">
		<div class="row">
			<div class="col-sm-12">
				<div class="col-sm-2">
					<div class="input-group">
						<a href="{:url('addtype')}" class="btn btn-primary btn-outline">添加分类</a>
					</div>
				</div>
			</div>
		</div>
		<div class="hr-line-dashed"></div>
            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th width="3%">ID</th>
                                <th width="35%">分类名称</th>
                                <th width="15%">添加时间</th>
								 <th width="15%">排序</th>
                                <th width="20%">操作</th>
                            </tr>
                        </thead>
                   <tbody>
							{foreach name="store_menu_level_list" item="vo"}
							<tr>
								<td class="text-center">{$vo.id}</td>
								<td>
									{neq name="vo.level" value="1"}|{php}for($i=1;$i<$vo['level'];$i++){echo ' ----';}{/php}{/neq} {$vo.name}
								</td>
								<td class="text-center">{$vo.add_time|}</td>
								<td class="text-center">{$vo.sort}</td>
								<td class="text-center">
									<a href="{:url('updatetype',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									<a href="{:url('deletetype',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
                    </table>
                    <div style="text-align: right;">
                
                    </div>
                </div>
            </div>
            </div>
</div>
{/block} {block name="script"}
<script>
$("#li-bar-card").addClass("active");
</script>
{/block}